package com.alibaba.common;

/**
 * @author : hanyang
 * @date : 2023-10-29 23:01
 **/

public class SystemConstants {

    /**
     * 文章是草稿
     */
    public static final String ARTICLE_STATUS_DRAFT = "1";

    /**
     * 文章是正常发布状态
     */
    public static final String ARTICLE_STATUS_NORMAL = "0";

    /**
     * 登陆时用户不存在
     */
    public static final String USER_NOT_EXIST = "用户不存在";

    public static final String USERNAME_OR_PASSWORD_ERROR = "用户名或密码错误";

    /**
     * redis的key前缀
     */
    public static final String REDIS_KEY_PREFIX = "blogLogin:";

    /**
     * 根评论的默认rootId
     */
    public static final Integer ROOT_COMMENT_ID = -1;

    /**
     * 数据库用户正常状态
     */
    public static final String AVAILABLE = "0";

    /**
     * 数据库用户停用状态
     */
    public static final String DISABLE = "1";

    /**
     * 数据库逻辑删除-未删除
     */
    public static final Integer UN_DELETED = 0;

    /**
     * 数据库逻辑删除-已删除
     */
    public static final Integer DELETED = 1;

    /**
     * 不分页查询时的offset和size 动态sql用
     */
    public static final Integer NO_PAGINATION = -1;

    /**
     * 图片外链首部http
     */
    public static final String OSS_EXTERNAL_LINK_PREFIX = "http:";

    /**
     * 用户表-普通用户定义
     */
    public static final String GENERAL_USER = "0";

    /**
     * 用户表-管理员定义
     */
    public static final String ADMIN = "1";

    /**
     * 默认头像
     */
    public static final String DEFAULT_AVATAR = "http://s3mznziqg.hb-bkt.clouddn.com/2023/11/05/76c9f1f8420f4a9d8afc8b3e23847572.jpg";


    /**
     * Redis存储文章阅读数量的Key
     */
    public static final String ARTICLE_VIEW_COUNT_KEY = "Article:ViewCount";

}
